import Vue from 'vue'
import App from './App.vue'
import ComAside from '@/components/ComAside'
import router from '@/rooter'
import store from '@/store'
Vue.config.productionTip = false


import ComHeader from '@/components/ComHeader'
Vue.component(ComHeader.name, ComHeader)

// 引入mockserver
import mockServer from '@/mock/mockServer'
Vue.component(ComAside.name, ComAside)

import { Dialog, DatePicker, Input, Form, FormItem, Select, Option, Checkbox, CheckboxGroup, Radio, Tag, Breadcrumb, BreadcrumbItem, Row, Col, Table, TableColumn, Card, Button, Container, Header, Aside, Main, RadioGroup, RadioButton, Menu, Submenu, MenuItemGroup, MenuItem, Dropdown, DropdownMenu, DropdownItem } from "element-ui";
Vue.use(Dialog)
Vue.use(DatePicker)
Vue.use(Input)
Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Select)
Vue.use(Option)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Radio)
Vue.use(Tag)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Row)
Vue.use(Col)
Vue.use(Card)
Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(RadioGroup)
Vue.use(RadioButton)
Vue.use(Submenu)
Vue.use(MenuItemGroup)
Vue.use(MenuItem)
Vue.use(Menu)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')
